import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: '/home'
  },
  {
    path: '/home',
    name: 'Home',
    component: () => import('../views/home')
  },
  {
    path: '/hot',
    name: 'Hot',
    component: () => import('../views/hot')
  },
  {
    path: '/member',
    name: 'Member',
    component: () => import('../views/member')
  },
  {
    path: '/mine',
    name: 'Mine',
    component: () => import('../views/mine')
  },
  {
    path: '/search',
    name: 'Search',
    component: () => import('../views/search')
  },
  {
    path: '/message',
    name: 'Message',
    component: () => import('../views/message')
  },
  {
    path: '/details',
    name: 'Details',
    component: () => import('../views/details')
  },
  {
    path: '/more',
    name: 'More',
    component: () => import('../views/more')
  },
  {
    path: '/login',
    name: 'Login',
    component: () => import('../views/login')
  }
]

const router = new VueRouter({
  routes
})

export default router
